package struct.advanced.map;

/**
 * @author MAX
 * @version 1.0
 * @description 高级数据结构-映射
 * @date 2022/1/17 10:02
 */
public interface Map<K, V> {

    void add(K key, V value);

    V remove(K key);

    boolean contains(K key);

    V get(K key);

    void set(K key, V newValue);

    int size();

    boolean isEmpty();
}
